package net.alpcontrol.bi.bootstrap.common;

import java.util.List;

public class PageResult<T> {
    private String code;
    private Long count;
    private List<T> data;
    private String msg;
    public final static String SUCCESS_CODE = "0";

    public String getCode() {
        return code;
    }

    public PageResult<T> setCode(String code) {
        this.code = code;
        return this;
    }

    public Long getCount() {
        return count;
    }

    public PageResult<T> setCount(Long count) {
        this.count = count;
        return this;
    }

    public List<T> getData() {
        return data;
    }

    public PageResult<T> setData(List<T> data) {
        this.data = data;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public PageResult<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
